<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
          xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">

<body>
    <!-- sidebar: style can be found in sidebar.less -->
      <aside class="main-sidebar"  >
    <section class="sidebar">

      <!-- Sidebar user panel (optional) -->
      <div class="user-panel">
        <div class="pull-left image">
          <img src="/images/log.png" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
          <p>Alexander Pierce</p>
          <!-- Status -->
          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
      </div>

      <!-- search form (Optional) -->
      <form action="/lucene/luceneSearch" method="get" class="sidebar-form">
        <div class="input-group">
          <input type="text" name="keyWords" class="form-control" placeholder="专家关键字">
          <span class="input-group-btn">
              <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
              </button>
            </span>
        </div>
      </form>
      <!-- /.search form -->

      <!-- Sidebar Menu -->
      <ul class="sidebar-menu" data-widget="tree">
        <li class="header">HEADER</li>
        <!-- Optionally, you can add icons to the links 
        <li class="active"><a href="/user/showUserList"><i class="fa fa-link"></i> <span>显示所有用户</span></a></li>
        <li><a href="#"><i class="fa fa-link"></i> <span>Another Link</span></a></li>-->
        
        <li class="treeview" th:each="collect,iterStat : ${session.userMenu}">
          <a href="#" ><i class="fa fa-link"></i> <span th:text="${collect.name}" th:onclick="@{'window.location.href='+${collect.url}}">Multilevel</span>
            <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
          </a>
          <ul class="treeview-menu" >
            <li th:each="coll,iter : ${collect.chilrd}"><a th:href="@{${coll.url}}" th:text="${coll.name}"> 显示所有用户</a></li>
          </ul>
        </li>
        
      </ul>
      <!-- /.sidebar-menu -->
    </section>
      </aside>
    <!-- /.sidebar -->
</body>
</html>